<!-- eslint-disable vue/multi-word-component-names -->
<template>
<<<<<<< HEAD
=======
  <div class="container">
    <van-nav-bar title="健康" />

    <div class="consult">
      <div class="consult-left" @click="toConsult">
        <img src="../../assets/img/咨询.png" alt="" />
      </div>
      <div class="consult-right">
        <div class="right-left"></div>
        <div class="right-text">
          根据你的选择，以下有建议你重点关注 哦~
          健康管理，病情分析，复杂重病推荐 安排全国专家等，也可
          <span @click="toConsult">点击头像咨询我</span>
        </div>
      </div>
>>>>>>> f8fdea22ae4acc1c9fe5d22ca2989d51005ee5f3
    <div style="overflow: hidden;">
        <div class="jiankang">
            <div @click="HandleTo">
                <div><img ref="imgsss" src="../../assets/men.png" alt="" class="tranImage"></div>
                <div class="logo">
                    <div style="font-size: 14px;">
                        <p style="position: absolute">
                            <span style="padding: 10px;display: inline-block;">根据你的选择，以下有 <img src="../../assets/ai.jpg"
                                    alt="" style="width: 10px;height: 10px;"> 建议你重点关注</span> <br>
                            <span style="padding: 11px;display: inline-block;margin-top: -10px;">
                                哦~健康管理，病情分析复杂重病推荐、</span>
                            <span style="padding: 12px;display: inline-block;margin-top: -10px;"> 安排全国专家等，也可<span
                                    style="color:#6cdaae ;">
                                    点击头像咨询我
                                </span></span>
                        </p>
                    </div>
                </div>
            </div>
            <div><img src="../../assets/caret-left.png" alt="" class="imgs"></div>
            <div class="project">
                <div class="project-head">
                    <div class="head-left">健康计划</div>
                    <div class="head-right" @click="toPlan">
                        全部计划<van-icon name="arrow" />
                    </div>
                </div>
                <div v-for="(item, index) in list" :key="index">
                    {{ item.flag }}
                </div>
                <div class="project-body">
                    <van-swipe :loop="false" class="swipe" :width="205" :show-indicators="false">
                        <div style="background-color: #717780;border-radius: 5px;">
                            <van-swipe-item class="man" @click="cultivation">
                                <div class="man-text">8天健康养成计划</div>
                                <div class="man-shu">6390人已加入</div>
                                <div class="man-button" v-if="flag == true">已加入</div>
                                <div class="man-button" v-else>免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man1" @click="Skincare">
                                <div class="man-text">15天护肤计划</div>
                                <div class="man-shu">149026人已加入</div>
                                <div class="man-button" v-if="flag == true">已加入</div>
                                <div class="man-button" v-else>免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man2" @click="Medic">
                                <div class="man-text">欧茜医生0~1岁育...</div>
                                <div class="man-shu">71777人已加入</div>
                                <div class="man-button">免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man3" @click="pimple">
                                <div class="man-text">21天战痘计划</div>
                                <div class="man-shu">209941人已加入</div>
                                <div class="man-button">免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man4" @click="Sleep">
                                <div class="man-text">睡眠改善计划</div>
                                <div class="man-shu">204905人已加入</div>
                                <div class="man-button">免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man5" @click="Health">
                                <div class="man-text">30天上班族保健计划</div>
                                <div class="man-shu">111073人已加入</div>
                                <div class="man-button">免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man6" @click="Leg">
                                <div class="man-text">21天瘦腰计划</div>
                                <div class="man-shu">234478人已加入</div>
                                <div class="man-button">免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man7" @click="Waist">
                                <div class="man-text">21天瘦腿计划</div>
                                <div class="man-shu">280661人已加入</div>
                                <div class="man-button">免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man8" @click="homestead">
                                <div class="man-text">7天宅家运动计划</div>
                                <div class="man-shu">224394人已加入</div>
                                <div class="man-button">免费加入</div>
                            </van-swipe-item>
                        </div>
                        <div style="background-color: #717780;margin-left: 10px;border-radius: 5px;">
                            <van-swipe-item class="man9" @click="Lose">
                                <div class="man-text">30天减肥饮食计划</div>
                                <div class="man-shu">273254人已加入</div>
                                <div class="man-button">免费加入</div>
                            </van-swipe-item>
                        </div>

                    </van-swipe>
                </div>
            </div>
            <div class="tool">
                <div class="tool-ha">健康工具箱</div>
                <div class="tool-hb">
                    <van-grid :column-num="5">
                        <van-grid-item icon="photo-o" @click="evaluation">
                            <img src="../../assets/健康.png" alt="" />
                            <div class="gong">健康测评</div>
                        </van-grid-item>
                        <van-grid-item icon="photo-o" @click="vaccine">
                            <img src="../../assets/疫苗.png" alt="" />
                            <div class="gong">疫苗时间</div>
                        </van-grid-item>
                        <van-grid-item icon="photo-o" @click="diet">
                            <img src="../../assets/饮食.png" alt="" />
                            <div class="gong">饮食宜忌</div>
                        </van-grid-item>
                        <van-grid-item icon="photo-o" @click="Parenting">
                            <img src="../../assets/育儿.png" alt="" />
                            <div class="gong">育儿知识</div>
                        </van-grid-item>
                        <van-grid-item icon="photo-o" @click="Growth">
                            <img src="../../assets/生长.png" alt="" />
                            <div class="gong">生长曲线</div>
                        </van-grid-item>
                    </van-grid>
                </div>
            </div>
            <div class="archives">
                <div class="archives-head">
                    <div class="head-left">
                        <div class="left-tab">健康档案</div>
                        <div class="left-tap">开启记录 让健康有迹可循</div>
                    </div>
                    <div class="head-right">
                        <div style="position: absolute;left: 150px ;top: 520px;">
                                <p style="margin-top:5px ;color: #6cdaae;">
                                    <span v-for="(item, index) in list" :key="index" @click="handleEdit(item)"
                                        style="width: 150px;z-index: 999;height: 50px;background-color: #0fba88;display: inline-block;position: absolute;left: -140px;border-radius: 5px;">
                                        <span style="color: white; "> {{ item.name }}</span>
                                        <span  style="color: white;position: absolute;left: 80px;width: 40px;height: 23px;border: 1px solid #fff;line-height: 18px;">{{ item.title }}</span>
                                    </span>
                                </p>

                        </div>
                    </div>
                </div>
                <div class="archives-body">
                    <div class="body-tag">
                        <div style="position: absolute;left: 150px ;top: 50px;">
                            <div>
                                <img style="width: 20px;height: 20px;position: absolute;top: -75px;right: -180px;"
                                    src="../../assets//添加.png" alt=""><span
                                    style="margin-top: 0px;position: absolute;right: -284px;width: 100px;top: -77px;"
                                    @click="addfliessss"> 新建档案</span>
                            </div>
                        </div>
                    </div>

                    <div class="body-san"></div>

                    <div class="body-top">
                        <div class="top" @click="Toedit">
                            <div class="top-left">个人基本信息</div>
                            <div class="top-right">去编辑<van-icon name="arrow" /></div>
                        </div>
                        <div class="boa">
                            <div class="boa-left" @click="Heavy">
                                <div class="boa-left-ti">
                                    <div class="boa-ti">运动</div>
                                    <img src="../../assets//aixin.jpg" alt=""
                                        style="position: absolute;left: 128px;top:137px;">
                                    <div class="boa-an"><van-icon name="arrow" style="margin-top: 10px;color: #ccc;" />
                                    </div>
                                </div>
                                <div class="boa-left-shu">0</div>
                                <div class="boa-left-text">保持健康，从管理体重开始</div>
                            </div>
                            <div class="boa-right" @click="Movement">
                                <div class="boa-left-ti">
                                    <div class="boa-ti">血压</div>
                                    <img src="../../assets//aixin.jpg" alt=""
                                        style="position: absolute;left: 128px;top: 255px;">
                                    <div class="boa-an"><van-icon name="arrow" style="margin-top: 10px;color: #ccc;" />
                                    </div>
                                </div>
                                <div class="boa-left-shu">0</div>
                                <div class="boa-left-text">每日锻炼半小时，助益身心</div>
                            </div>
                        </div>

                        <div class="boa">
                            <div class="boa-left" @click="Sugar">
                                <div class="boa-left-ti">
                                    <div class="boa-ti">心率</div>
                                    <img src="../../assets//aixin.jpg" alt=""
                                        style="position: absolute;right: 40px;top: 137px;">
                                    <div class="boa-an"><van-icon name="arrow" style="margin-top: 10px;color: #ccc;" />
                                    </div>
                                </div>
                                <div class="boa-left-shu">0</div>
                                <div class="boa-left-text">规范记录掌握血糖变化规律</div>
                            </div>
                            <div class="boa-right" @click="Blood">
                                <div class="boa-left-ti">
                                    <div class="boa-ti">睡眠</div>
                                    <img src="../../assets//aixin.jpg" alt=""
                                        style="position: absolute;right: 40px;top: 255px;">
                                    <div class="boa-an"><van-icon name="arrow" style="margin-top: 10px;color: #ccc;" />
                                    </div>
                                </div>
                                <div class="boa-left-shu">0</div>
                                <div class="boa-left-text">定时监测利于改善血压控制</div>
                            </div>
                        </div>

                        <div class="boa">
                            <div class="boa-left" @click="Heart">
                                <div class="boa-left-ti">
                                    <div class="boa-ti">体重</div>
                                    <div class="boa-an"><van-icon name="arrow" style="margin-top: 10px;color: #ccc;" />
                                    </div>
                                </div>
                                <div class="boa-left-shu">0</div>
                                <div class="boa-left-text">监测心率，关注心脏健康</div>
                            </div>
                            <div class="boa-right" @click="Seep">
                                <div class="boa-left-ti">
                                    <div class="boa-ti">血糖</div>
                                    <div class="boa-an"><van-icon name="arrow" style="margin-top: 10px;color: #ccc;" />
                                    </div>
                                </div>
                                <div class="boa-left-shu">0</div>
                                <div class="boa-left-text">睡好7小时，保持充沛精力</div>
                            </div>
                        </div>

                        <div class="fats">
                            <div class="fa-left">
                                <img src="../../assets/绑定.png" alt="" />
                                <div class="fa-text">绑定智能设备，自动上传数据</div>
                            </div>
                            <div class="fa-right">
                                去绑定
                                <van-icon name="arrow" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>
    <div class="tab">
        <van-tabs v-model:active="active" van-tab-active-text-color="#fff">
            <van-tab title="电子病历夹">
                <img src="../../assets//bi.jpg" alt="" style="position: absolute;left: 155px;top: 85px;">
                <p style="position: absolute;left: 65px;top: 205px;">看病检查单、报告单、体检报告一键上传</p>
                <p style="position: absolute;left: 85px;top: 235px;">告别纸质记录，更好守护家人健康</p>
                <button style="width: 200px;height: 40px;position: absolute;left: 105px;top: 275px;background-color: #fff;border: 1px solid #4fd678;
               border-radius: 20px;color: #4fd678;" @click="showPopup">新建病历夹</button>
                <van-popup v-model:show="show" position="bottom" :style="{ height: '45%' }">
                    <img src="../../assets//wenjian.jpg" alt=""
                        style="width: 100px;height: 100px;border-radius: 50%;position: absolute;left: 37%;top: 15%;">
                    <p style="position: absolute;left: 39%;top: 47%;color: #717780; " @click="Tobingli">新建病例夹 </p>
                    <p style="position: absolute;left: 39%;top: 55%;color:#979797;font-size: 40px;"
                        @click="handileguan">x</p>
                </van-popup>
            </van-tab>
            <van-tab title="体检报告">
                <img style="position: absolute;left: 130px;top: 125px;" src="../../assets//huojian.jpg" alt="">
                <p style="position: absolute;left: 155px;top: 245px;color: #c7c7c7;">暂无体检报告</p>
            </van-tab>
            <van-tab title="咨询记录">
                <img style="position: absolute;left: 130px;top: 125px;" src="../../assets//huojian.jpg" alt="">
                <p style="position: absolute;left: 155px;top: 245px;color: #c7c7c7;">暂无体检报告</p>
            </van-tab>
            <van-tab title="会员服务">
                <img style="position: absolute;left: 130px;top: 125px;" src="../../assets//vp.jpg" alt="">
                <p style="position: absolute;left: 131px;top: 245px;color: #c7c7c7;">您未开通会员服务</p>
            </van-tab>
        </van-tabs>
    </div>

    <div class="project">
      <div class="project-head">
        <div class="head-left">健康计划</div>
        <div class="head-right" @click="toPlan">
          全部计划<van-icon name="arrow" />
        </div>
      </div>
      <div class="project-body">
        <van-swipe
          :loop="false"
          class="swipe"
          :width="170"
          :show-indicators="false"
        >
          <van-swipe-item class="man" @click="cultivation">
            <div class="man-text">8天健康养成计划</div>
            <div class="man-shu">6390人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="Skincare">
            <div class="man-text">15天护肤计划</div>
            <div class="man-shu">149026人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="Medic">
            <div class="man-text">欧茜医生0~1岁育...</div>
            <div class="man-shu">71777人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="pimple">
            <div class="man-text">21天战痘计划</div>
            <div class="man-shu">209941人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="Sleep">
            <div class="man-text">睡眠改善计划</div>
            <div class="man-shu">204905人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="Health">
            <div class="man-text">30天上班族保健计划</div>
            <div class="man-shu">111073人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="Leg">
            <div class="man-text">21天瘦腿计划</div>
            <div class="man-shu">209941人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="Waist">
            <div class="man-text">21天瘦腰计划</div>
            <div class="man-shu">209941人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="homestead">
            <div class="man-text">7天宅家运动计划</div>
            <div class="man-shu">209941人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="Lose">
            <div class="man-text">30天减肥饮食计划</div>
            <div class="man-shu">209941人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
          <van-swipe-item class="man" @click="weight">
            <div class="man-text">30天减肥运动计划</div>
            <div class="man-shu">209941人已加入</div>
            <div class="man-button">免费加入</div>
          </van-swipe-item>
        </van-swipe>
      </div>
    </div>

    <div class="tool">
      <div class="tool-ha">健康工具箱</div>
      <div class="tool-hb">
        <van-grid :column-num="5">
          <van-grid-item icon="photo-o" @click="evaluation">
            <img src="../../assets/img/健康.png" alt="" />
            <div class="gong">健康测评</div>
          </van-grid-item>
          <van-grid-item icon="photo-o" @click="vaccine">
            <img src="../../assets/img/疫苗.png" alt="" />
            <div class="gong">疫苗时间</div>
          </van-grid-item>
          <van-grid-item icon="photo-o" @click="diet">
            <img src="../../assets/img/饮食.png" alt="" />
            <div class="gong">饮食宜忌</div>
          </van-grid-item>
          <van-grid-item icon="photo-o" @click="Parenting">
            <img src="../../assets/img/育儿.png" alt="" />
            <div class="gong">育儿知识</div>
          </van-grid-item>
          <van-grid-item icon="photo-o" @click="Growth">
            <img src="../../assets/img/生长.png" alt="" />
            <div class="gong">生长曲线</div>
          </van-grid-item>
        </van-grid>
      </div>
    </div>

    <div class="archives">
      <div class="archives-head">
        <div class="head-left">
          <div class="left-tab">健康档案</div>
          <div class="left-tap">开启记录 让健康有迹可循</div>
        </div>
        <div class="head-right">
          <span class="hta" @click="Editor">+新建档案</span>
        </div>
      </div>
      <div class="archives-body">
        <div class="body-tag">

        </div>

        <div class="body-san"></div>

        <div class="body-top">
          <div class="top">
            <div class="top-left">个人基本信息</div>
            <div class="top-right">去编辑<van-icon name="arrow" /></div>
          </div>

          <div class="boa">
            <div class="boa-left" @click="Heavy">
              <div class="boa-left-ti">
                <div class="boa-ti">体重</div>
                <div class="boa-an"><van-icon name="arrow" /></div>
              </div>
              <div class="boa-left-shu">0</div>
              <div class="boa-left-text">保持健康，从管理体重开始</div>
            </div>
            <div class="boa-right" @click="Movement">
              <div class="boa-left-ti">
                <div class="boa-ti">运动</div>
                <div class="boa-an"><van-icon name="arrow" /></div>
              </div>
              <div class="boa-left-shu">0</div>
              <div class="boa-left-text">每日锻炼半小时，助益身心</div>
            </div>
          </div>

          <div class="boa">
            <div class="boa-left" @click="Sugar">
              <div class="boa-left-ti">
                <div class="boa-ti">血糖</div>
                <div class="boa-an"><van-icon name="arrow" /></div>
              </div>
              <div class="boa-left-shu">0</div>
              <div class="boa-left-text">规范记录掌握血糖变化规律</div>
            </div>
            <div class="boa-right" @click="Blood">
              <div class="boa-left-ti">
                <div class="boa-ti">血压</div>
                <div class="boa-an"><van-icon name="arrow" /></div>
              </div>
              <div class="boa-left-shu">0</div>
              <div class="boa-left-text">定时监测利于改善血压控制</div>
            </div>
          </div>

          <div class="boa">
            <div class="boa-left" @click="Heart">
              <div class="boa-left-ti">
                <div class="boa-ti">心率</div>
                <div class="boa-an"><van-icon name="arrow" /></div>
              </div>
              <div class="boa-left-shu">0</div>
              <div class="boa-left-text">监测心率，关注心脏健康</div>
            </div>
            <div class="boa-right" @click="Seep">
              <div class="boa-left-ti">
                <div class="boa-ti">睡眠</div>
                <div class="boa-an"><van-icon name="arrow" /></div>
              </div>
              <div class="boa-left-shu">0</div>
              <div class="boa-left-text">睡好7小时，保持充沛精力</div>
            </div>
          </div>

          <div class="fats">
            <div class="fa-left">
              <img src="../../assets/img/绑定.png" alt="" />
              <div class="fa-text">绑定智能设备，自动上传数据</div>
            </div>
            <div class="fa-right">
              去绑定
              <van-icon name="arrow" />
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="tab">
      <van-tabs v-model:active="active">
        <van-tab title="电子病历夹">
          <van-empty description="看病检查单 报告单 体检报告一键上传">
            <van-button round type="primary" class="bottom-button"
              >新建文件夹</van-button
            >
          </van-empty>
        </van-tab>
        <van-tab title="体检报告">
          <van-empty image="error" description="暂无体检报告" />
        </van-tab>
        <van-tab title="咨询记录">
          <van-empty image="error" description="暂无咨询记录" />
        </van-tab>
        <van-tab title="会员服务">
          <van-empty image="error" description="未开通会员服务" />
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script setup lang="ts">
<<<<<<< HEAD
=======
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const active = ref(0)
const router = useRouter()

// 春雨健康顾问
const toConsult = () => {
  router.push('/Consultant')
}

// 全部计划
const toPlan = () => {
  router.push('/Plan')
}

// 健康测评
const evaluation = () => {
  router.push('/Evaluation')
}

// 疫苗时间
const vaccine = () => {
  router.push('/Vaccine')
}

// 饮食宜忌
const diet = () => {
  router.push('/Diet')
}

// 育儿知识
const Parenting = () => {
  router.push('/Parenting')
}

// 生长曲线
const Growth = () => {
  router.push('/Growth')
}

// 8天健康养成计划
const cultivation = () => {
  router.push('/Cultivation')
}

// 15天护肤计划
const Skincare = () => {
  router.push('/Skincare')
}

// 欧茜医生
const Medic = () => {
  router.push('/Medic')
}

// 21天战痘计划
const pimple = () => {
  router.push('/Pimple')
}

// 睡眠改善计划
const Sleep = () => {
  router.push('/Sleep')
}

// 30天上班族保健计划
const Health = () => {
  router.push('/Health')
}

// 21天瘦腿计划
const Leg = () => {
  router.push('/Leg')
}

// 21天瘦腰计划

const Waist = () => {
  router.push('/Waist')
}

// 7天宅家运动计划

const homestead = () => {
  router.push('/Homestead')
}

// 30天减肥饮食计划
const Lose = () => {
  router.push('/Lose')
}

// 30天减肥运动计划
const weight = () => {
  router.push('/Weight')
}

const Heavy = () => {
  router.push('/Heavy')
}

//
const Movement = () => {
  router.push('/Movement')
}

const Sugar = () => {
  router.push('/Sugar')
}

const Blood = () => {
  router.push('/Blood')
}

const Heart = () => {
  router.push('/Heart')
}

const Seep = () => {
  router.push('/Seep')
}



// 点击新建档案
const Editor = () => {
  router.push('/Editor')
}

>>>>>>> f8fdea22ae4acc1c9fe5d22ca2989d51005ee5f3
import { ref, onMounted, computed } from 'vue';
import { useRouter, useRoute } from 'vue-router'
const imgsss = ref()
const router = useRouter()
const active = ref(0)
import axios from 'axios';
const list = ref<any>([])
const flag = ref<any>(true)
const show = ref<any>(false);
const showPopup = () => {
    show.value = true;
};
const getlist = async () => {
    await axios.get('/addres/ChunYuperson').then(res => {
        console.log(res)
        list.value = res.data.data
        console.log(list.value)
    }).catch(err => {
        console.log(err)
    })
}
getlist()
const Tobingli = (item:any) => {
    console.log(item);

    router.push({
        path: '/Tobingli',
    })
}
const Toedit = () => {
    router.push({
        path: '/edit',
    })
}

const handleEdit = (item: any) => {
    console.log(525626);

    router.push({
        path: '/edit',
        query: {
            item: JSON.stringify(item),
        }
    })
}
const phone = ref(localStorage.getItem('phone',))
const name = ref(localStorage.getItem('name',))
const relation = ref(localStorage.getItem('relation',))
console.log('name', name.value);
console.log('phone', phone.value);
console.log('relation', relation.value);
const handileguan = () => {
    show.value = false;
}
const Seep = () => {

}
const Heart = () => {

}
const Blood = () => {

}
const Sugar = () => {

}
const Movement = () => {

}
const Heavy = () => {

}
const addfliessss = () => {
    router.push({
        path: '/editor',
    })
}
const Growth = () => {

}
const Parenting = () => {

}
const diet = () => {

}
const vaccine = () => {

}
const evaluation = () => {

}
// 跳转到头部的春雨咨询页面
const HandleTo = () => {
    router.push({
        path: '/chun',
    })
}
// 跳转到全部计划页面
const toPlan = () => {
    router.push({
        path: '/plan',
    })
}
// 跳转到8天健康养成计划
const cultivation = () => {
    localStorage.setItem('flag', 'true')
    flag.value = !false
    router.push({
        path: '/cultivation',
    })
}
// 跳转到15天护肤计划
const Skincare = () => {
    router.push({
        path: '/ji',
    })
}
// 跳转到欧茜医生0~1岁育...
const Medic = () => {
    router.push({
        path: '/Medic',
    })
}
const pimple = () => {
    router.push({
        path: '/pimple',
    })
}
// 跳转到21天战痘计划
const Sleep = () => {
    router.push({
        path: '/Sleep',
    })
}
// 跳转到30天上班族保健计划
const Health = () => {
    router.push({
        path: '/Health',
    })
}
// 跳转到21天瘦腰计划
const Leg = () => {
    router.push({
        path: '/Leg',
    })
}
// 跳转到21天瘦腿计划
const Waist = () => {
    router.push({
        path: '/Waist',
    })
}
// 跳转7天宅家运动计划
const homestead = () => {
    router.push({
        path: '/homestead',
    })
}
const Lose = () => {
    router.push({
        path: '/Lose',
    })
}
const weight = () => {

}
</script>

<style lang="scss">
.container {
  height: 100%;
  width: 100%;
  background-color: #f7f7f7;
  font-size: 15px;
}

.right-left {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
  left: -8px;
  top: 40px;
}

.consult {
  height: 100px;
  width: 100%;
  background-color: #8ddcc7;
}

.consult-left {
  float: left;
  height: 100px;
  width: 100px;
  // background-color: red;
  img {
    height: 70px;
    width: 70px;
    margin: 15px;
    border-radius: 50px;
  }
}

.consult-right {
  position: relative;
  float: left;
  height: 100px;
  width: 270px;
  // background-color:pink;
  .right-text {
    height: 80px;
    width: 100%;
    background-color: #fff;
    margin: 10px 0;
    border-radius: 10px;
    font-size: 12px;
    line-height: 25px;
    padding: 2px 20px;
    color: #979797;
    font-weight: bold;

    span {
      color: #2fc78a;
      font-size: 12px;
    }
  }
}

.project {
  height: 170px;
  width: 100%;
  // background-color: yellow;
  // margin: 10px 0;
}
.project-head {
  height: 50px;
  width: 100%;
  background-color: #b9e7db;
  line-height: 50px;
  // font-size: 20px;
  .head-left {
    float: left;
    font-weight: bold;
    padding: 0 10px;
    font-size: 18px;
  }
  .head-right {
    float: right;
    color: #999;
    font-size: 14px;
    padding: 0 10px;
  }
}
.project-body {
  height: 120px;
  width: 100%;
  // background-color: pink;
  padding: 0 10px;

  .man {
    height: 120px;
    width: 100%;
    background-color: #717780;
    margin-right: 0 20px;
    border-radius: 10px;
    // box-shadow: 10px 10px 10px 5px rgba(143, 139, 139, 0.5);
    border: 2px solid #fff;
    color: #fff;
    .man-text {
      padding: 10px;
      font-weight: bold;
    }
    .man-shu {
      padding: 0 10px;
      font-size: 12px;
    }
    .man-button {
      margin-top: 10px;
      margin-left: 10px;
      height: 30px;
      width: 80px;
      background-color: #62676f;
      border-radius: 20px;
      text-align: center;
      line-height: 30px;
      font-size: 12px;
    }
  }
}

.tool {
  width: 100%;
  margin: 10px 0;
  // background-color: pink;
  // border-bottom: 1px solid #000;
}
.tool-ha {
  height: 50px;
  width: 100%;
  line-height: 50px;
  font-size: 20px;
  padding: 0 10px;
}
.tool-hb {
  height: 80px;
  width: 100%;
  background-color: #fff;
  img {
    height: 30px;
    width: 30px;
  }
  .gong {
    font-size: 12px;
  }
}

.archives {
  height: 100%;
  width: 100%;
  // background-color: pink;

  .archives-head {
    height: 50px;
    width: 100%;
    // background-color: pink;
    line-height: 50px;
    .head-left {
      float: left;

      .left-tab {
        float: left;
        font-size: 20px;
        margin: 0 10px;
      }
      .left-tap {
        float: left;
        font-size: 12px;
        color: #999;
      }
    }
    .head-right {
      float: right;
      // border: 1px solid #ccc;
      border-radius: 40px;
      .hta{
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 40px;
        font-size: 12px;
      }
    }
  }
  .archives-body {
    position: relative;
    height: 600px;
    width: 100%;
    // background-color: rgb(195, 255, 192);

    .body-tag {
      height: 100px;
      width: 100%;
      background-color: orange;
    }

    .body-san {
      position: absolute;
      width: 0;
      height: 0;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-bottom: 10px solid #fff;
      z-index: 999;
      left: 55px;
      top: 92px;
    }

    .body-top {
      height: 500px;
      width: 100%;
      background-color: #fff;
      padding: 15px 10px;
      box-shadow: 0px -5px 10px rgba(145, 141, 141, 0.5);
      .top {
        height: 50px;
        width: 100%;
        background-color: #f4f6f7;
        line-height: 50px;
        margin-bottom: 10px;
        .top-left {
          float: left;
          padding: 0 10px;
        }
        .top-right {
          float: right;
          padding: 0 10px;
          color: #6a6a6a;
          font-size: 13px;
        }
      }

      .boa {
        height: 120px;
        width: 100%;
        // background-color: pink;
        // margin-top: 10px;

        .boa-left {
          float: left;
          height: 100px;
          width: 170px;
          background-color: #f4f6f7;
          .boa-left-ti {
            padding: 10px;
            height: 30px;
            width: 100%;
            // background-color:orange;
            .boa-ti {
              float: left;
            }
            .boa-an {
              float: right;
            }
          }
          .boa-left-shu {
            padding: 10px;
          }
          .boa-left-text {
            padding: 0 10px;
            font-size: 11px;
            color: #999;
          }
        }
        .boa-right {
          float: right;
          height: 100px;
          width: 160px;
          background-color: #f4f6f7;

          .boa-left-ti {
            padding: 10px;
            height: 30px;
            width: 100%;
            // background-color:orange;
            .boa-ti {
              float: left;
            }
            .boa-an {
              float: right;
            }
          }
          .boa-left-shu {
            padding: 10px;
          }
          .boa-left-text {
            padding: 0 10px;
            font-size: 11px;
            color: #999;
          }
        }
      }

      .fats {
        height: 50px;
        width: 100%;
        background-color: #f4f6f7;
        line-height: 50px;
        .fa-left {
          float: left;
          height: 50px;
          img {
            float: left;
            height: 25px;
            margin: 10px;
          }
          .fa-text {
            float: left;
            font-size: 14px;
          }
        }
        .fa-right {
          float: right;
          padding: 0 10px;
          font-size: 13px;
          color: #999;
        }
      }
    }
  }
}

.tab {
  height: 500px;
  width: 100%;
  // background-color: #0bf341;
  margin-top: 10px;
<style lang="scss" scoped>
*{
    margin: 0;
    padding: 0;
    list-style: none;
}
.jian {
    text-align: center;
    width: 100%;
    height: 2.625rem;
    line-height: 2.625rem;
    border-bottom: 1px solid #ccc;
}

.jiankang {
    width: 100%;
    height: 18rem;
    background: linear-gradient(to bottom, #99dfce 10%, #fff 100%);
    position: relative;
}

.logo {
    width: 17.375rem;
    height: 6.375rem;
    background-color: #fff;
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    border-radius: 0.625rem;
    border-left: none;
}

.imgs {
    width: 0.75rem;
    height: 0.75rem;
    position: absolute;
    left: 6.8rem;
    top: 4rem;
}

.project {

    height: 170px;
    width: 100%;
}

.project-head {
    margin-top: -0.5rem;
    height: 50px;
    width: 100%;
    line-height: 42px;

    .head-left {
        float: left;
        font-weight: bold;
        padding: 0 10px;
        font-size: 18px;
    }

    .head-right {
        float: right;
        color: #999;
        font-size: 14px;
        padding: 0 10px;
    }
}

.tranImage {
    border-radius: 50%;
    margin: 1.875rem 16px;
    animation: linear 5s infinite alternate identifier;
}

.project-body {
    overflow: scroll;
    width: 100%;
    height: 112px;
    padding: 0 1px;

    .man {
        height: 100% !important;
        width: 100%;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man1 {
        height: 100% ;
        width: 100%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女4.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man2 {
        height: 100% ;
        width: 100%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女3.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man3 {
        height: 110% !important;
        width: 110%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女2.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man4 {
        height: 100% !important;
        width: 100%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女5.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
           padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man5 {
        height: 110% !important;
        width: 110%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女6.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 19px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man6 {
        height: 100% !important;
        width: 100%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女7.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man7 {
        height: 100% !important;
        width: 100%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女8.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man8 {
        height: 100% !important;
        width: 100%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女9.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

    .man9 {
        height: 100% !important;
        width: 100%;
        overflow: scroll;
        background-color: #717780;
        margin-right: 0 10px;
        border-radius: 10px;
        color: #fff;
        margin: 0 5px;
        background: url('../../assets//美女10.png') no-repeat right !important;

        .man-text {
            padding: 10px;
            font-size: 20px;
            font-weight: 900;
        }

        .man-shu {
            padding: 0 10px;
            font-size: 14px;
            font-weight: normal;
        }

        .man-button {
            margin-top: 10px;
            margin-left: 10px;
            height: 30px;
            width: 80px;
            background-color: #62676f;
            border-radius: 20px;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
        }
    }

}

.swipe {
    overflow-x: scroll;
    width: 400px;
}

// 动画无限循环
@keyframes identifier {
    0% {
        transform: scale(0.8);
    }

    25% {
        transform: scale(0.7);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(0.7);
    }

    100% {
        transform: scale(0.8);
    }
}

.tool {
    width: 100%;
    margin: 10px 0;
}

.tool-ha {
    height: 50px;
    width: 100%;
    line-height: 50px;
    font-size: 20px;
    padding: 0 10px;
}

.tool-hb {
    height: 80px;
    width: 100%;
    background-color: #fff;

    img {
        height: 30px;
        width: 30px;
    }

    .gong {
        font-size: 12px;
    }
}

.archives {
    height: 100%;
    width: 100%;

    .archives-head {
        height: 50px;
        width: 100%;
        line-height: 50px;

        .head-left {
            float: left;

            .left-tab {
                float: left;
                font-size: 20px;
                margin: 0 10px;
            }

            .left-tap {
                float: left;
                line-height: 55px;
                font-size: 12px;
                color: #999;
            }
        }

        .head-right {
            //         width: 10px;
            // height: 10px;
            float: right;
            border-radius: 40px;

            .hta {
                width: 5px;
                position: absolute;
                display: inline-block;
                // top: 10px;
                height: 5px;
                padding: 10px;
                border-radius: 40px;
                font-size: 10px;
            }
        }
    }

    .archives-body {
        position: relative;
        height: 600px;
        width: 100%;

        .body-tag {
            height: 60px;
            width: 100%;
            z-index: 9999;
        }

        .body-san {
            position: absolute;
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid #fff;
            z-index: 999;
            left: 55px;
            top: 54px;
        }

        .body-top {
            height: 500px;
            width: 100%;
            background-color: #fff;
            padding: 15px 10px;
            box-shadow: 0px -5px 10px rgba(145, 141, 141, 0.5);

            .top {
                height: 50px;
                width: 100%;
                background-color: #f4f6f7;
                line-height: 50px;
                margin-bottom: 10px;

                .top-left {
                    float: left;
                    padding: 0 10px;
                }

                .top-right {
                    float: right;
                    padding: 0 10px;
                    color: #6a6a6a;
                    font-size: 13px;
                }
            }

            .boa {
                height: 120px;
                width: 100%;

                .boa-left {
                    float: left;
                    height: 100px;
                    width: 170px;
                    background-color: #f4f6f7;

                    .boa-left-ti {
                        padding: 10px;
                        height: 30px;
                        width: 100%;

                        .boa-ti {
                            float: left;
                        }

                        .boa-an {
                            float: right;
                        }
                    }

                    .boa-left-shu {
                        padding: 10px;
                    }

                    .boa-left-text {
                        padding: 0 10px;
                        font-size: 11px;
                        color: #999;
                    }
                }

                .boa-right {
                    float: right;
                    height: 100px;
                    width: 160px;
                    background-color: #f4f6f7;

                    .boa-left-ti {
                        padding: 10px;
                        height: 30px;
                        width: 100%;

                        .boa-ti {
                            float: left;
                        }

                        .boa-an {
                            float: right;
                        }
                    }

                    .boa-left-shu {
                        padding: 10px;
                    }

                    .boa-left-text {
                        padding: 0 10px;
                        font-size: 11px;
                        color: #999;
                    }
                }
            }

            .fats {
                height: 50px;
                width: 100%;
                background-color: #f4f6f7;
                line-height: 50px;

                .fa-left {
                    float: left;
                    height: 50px;

                    img {
                        float: left;
                        height: 25px;
                        margin: 10px;
                    }

                    .fa-text {
                        float: left;
                        font-size: 14px;
                    }
                }

                .fa-right {
                    float: right;
                    padding: 0 10px;
                    font-size: 13px;
                    color: #999;
                }
            }
        }
    }
}

.tab {
    height: 400px;
    width: 90%;
    display: inline-block;
    margin-top: 10px;
    position: relative;
}

:deep(.van-tabs__line) {
    position: absolute;
    bottom: 15px;
    left: 0;
    z-index: 1;
    background: #39d167;
    border-radius: var(--van-tabs-bottom-bar-height);
}

:deep(.bottom-button) {
    width: 277px;
    position: absolute;
    bottom: 1px;
    left: 60px;
    z-index: 1;
    background: #fff;
    color: #50d779;
    border: 1px solid #39d167;
}
</style>
